﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace JoyeriaProject
{
    public partial class frmExplorer : Form
    {
        private frmMain.ExplorerFormReturn ReturnedValues; 
        
        public frmExplorer(frmMain.ExplorerFormReturn del)
        {
            ReturnedValues = del;
            InitializeComponent();
        }

        private void btnFind_Click(object sender, EventArgs e)
        {
            ReturnedValues.Invoke("FIND", 0);
        }

        private void btnRegister_Click(object sender, EventArgs e)
        {
            ReturnedValues.Invoke("NEWCUSTOMER",0);
        }

        private void btnAgent_Click(object sender, EventArgs e)
        {
            ReturnedValues.Invoke("NEWAGENT",0);
        }

        private void btnHistorial_Click(object sender, EventArgs e)
        {
            ReturnedValues.Invoke("HISTORY",0);
        }

        private void btnExit_Click(object sender, EventArgs e)
        {
            ReturnedValues.Invoke("EXIT",0);
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }
    }
}
